package com.mystnihon.freeremote.ui;

import android.content.Intent;
import android.os.Bundle;

import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.actionbarsherlock.view.Window;
import com.mystnihon.freeremote.R;
import com.mystnihon.freeremote.ui.fragment.TorrentDetailsFragment;

public class TorrentDetailsActivity extends SherlockFragmentActivity {
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
		setContentView(R.layout.layout_torrent_details_activity);
		Intent intent = getIntent();
		if (intent != null) {
			String json = intent.getStringExtra(TorrentDetailsFragment.TORRENT_JSON);
			TorrentDetailsFragment frag = (TorrentDetailsFragment) getSupportFragmentManager().findFragmentById(R.id.fr_fragment_torrent_details);
			frag.setData(json);
		}
	}

}
